import request from '@/utils/request'

// 查询季节列表
export function listSeason(query) {
  return request({
    url: '/snowRemoving/season/list',
    method: 'get',
    params: query
  })
}

// 查询季节详细
export function getSeason(id) {
  return request({
    url: '/snowRemoving/season/' + id,
    method: 'get'
  })
}

// 新增季节
export function addSeason(data) {
  return request({
    url: '/snowRemoving/season',
    method: 'post',
    data: data
  })
}

// 修改季节
export function updateSeason(data) {
  return request({
    url: '/snowRemoving/season',
    method: 'put',
    data: data
  })
}

// 删除季节
export function delSeason(id) {
  return request({
    url: '/snowRemoving/season/' + id,
    method: 'delete'
  })
}
